<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>课件详情</title>
	<meta name="decorator" content="default"/>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/resource/resourceCourseware/">课件列表</a></li>
		<li class="active"><a href="${ctx}/resource/resourceCourseware/detail?id=${resourceCourseware.id}">课件详情</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="resourceCourseware" action="" method="post" class="form-horizontal" enctype="multipart/form-data">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">课件名称：</label>
			<div class="controls">
				<form:input path="coursewareName" htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
				<span class="help-inline" ><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">课件属性：</label>
			<div class="controls">
				<form:select path="coursewareAttribute" class="input-xlarge required" disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_courseware_attribute')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">标签：</label>
			<div class="controls">
				<form:input path="label" htmlEscape="false" maxlength="64" class="input-xlarge " readonly="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">视频素材:</label>
			<div class="controls">
				<input type="text" id="videoMaterial" htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true" value="${videoMaterialURL}"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">课件文档:</label>
			<div class="controls">
				<input type="text" id="coursewareDocumentIds" htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true" value="${coursewareDocumentURL}"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">关联实验环境：</label>
			<div class="controls">
				<form:input path="environmentId" htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
			</div>
		</div>

		<div class="control-group">
			<label class="control-label">是否要提交结果：</label>
			<div class="controls">
				<form:select path="submitResult" class="input-xlarge required" disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_courseware_submit_result')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实验文档：</label>
			<div class="controls">
				<form:textarea htmlEscape="false" path="document" rows="4" id="content" maxlength="2000" class="input-xxlarge"/>
				<sys:ckeditor replace="document" uploadPath="/itemDescribe" />
			</div>
		</div>

		<div class="control-group">
			<label class="control-label">文档素材：</label>
			<div class="controls">
				<table id="contentTable" class="table table-striped table-bordered table-condensed">
					<thead>
					<tr>
						<th>文档序号</th>
						<th>文档名称</th>
					</tr>
					</thead>
					<tbody>
					<c:forEach items="${page.list}" var="coursewareMaterial" varStatus="status">
						<tr>
							<td>
									${status.count}
							</td>
							<td>
									${coursewareMaterial.name}
							</td>


						</tr>
					</c:forEach>
					</tbody>
				</table>
				<div class="pagination">${page}</div>
			</div>
		</div>
		<div class="form-actions">
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>